#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stddef.h>

typedef void (*C_Callback)(const char* eventName, const char* data);

int32_t Event_Subscribe(const char* eventName, C_Callback callback, int32_t priority);
void Event_Unsubscribe(const char* eventName, int32_t handle);
void Event_Notify(const char* eventName, const char* data);
void Event_NotifyAsync(const char* eventName, const char* data);
void Event_SetThreadPoolSize(size_t size);

#ifdef __cplusplus
}
#endif